<?php

return [
    [
        'name' => 'new_user_gift_state',
        'title' => '是否开启',
        'component' => 'switches',
        'value' => 0,
        'extra'         => [
            'props' => [
                'activeValue' => 1,
                'inactiveValue' => 0,
                'activeText' => '开启',
                'inactiveText' => '关闭',
            ]
        ]
    ],
    [
        'name' => 'new_user_gift_register_role',
        'title' => '注册赠送获得奖励的角色',
        'component' => 'checkbox',
        'value' => ['referee'],
        'extra' => [
            'options' => [
                [
                    'value' => 'referee',
                    'label' => '推荐人',
                    'disabled' => true,
                ],
                [
                    'value' => 'referee_user',
                    'label' => '被推荐人',
                ],
            ],
        ],
    ],
    [
        'name' => 'new_user_gift_register',
        'title' => '注册赠送',
        'component' => 'remote',
        'value' => [],
        'extra' => [
            'props' => [
                'file' => "app/ycMassage/remote/form/coupon-select",
            ]
        ]
    ],
    [
        'name' => 'new_user_gift_first_order_role',
        'title' => '首单赠送获得奖励的角色',
        'component' => 'checkbox',
        'value' => ['referee'],
        'extra' => [
            'options' => [
                [
                    'value' => 'referee',
                    'label' => '推荐人',
                    'disabled' => true,
                ],
                [
                    'value' => 'referee_user',
                    'label' => '被推荐人',
                ],
            ],
        ],
    ],
    [
        'name' => 'new_user_gift_first_order',
        'title' => '首单赠送',
        'component' => 'remote',
        'value' => [],
        'extra' => [
            'props' => [
                'file' => "app/ycMassage/remote/form/coupon-select",
            ]
        ]
    ]
];
